#include "mapEnum.h"
#include "mapEnumClass.h"


int main()
{

    eNumTest testObj(AttachEntity::IntegrationPoint);
    testObj.printAttach();

    // 创建一个map对象
    AttachMap attachMap;
    
    //添加元素
    attachMap[AttachEntity::IntegrationPoint] = 555;
    std::cout << attachMap[AttachEntity::IntegrationPoint] << std::endl;
    attachMap[AttachEntity::Particle] = 666;
    std::cout << attachMap[AttachEntity::Particle] << std::endl;

    std::cout <<"Has or not? " << testObj.hasAttachEntity() << std::endl;

    eNumTest objConn(ConnectEntity::cellPerFace);
    std::cout << objConn.public_status_ << std::endl;
 //- Private的成员变量不能访问
    // std::cout << objConn.private_status_ << std::endl;
    objConn.printAttach();
    objConn.printAttach();
 std::cout <<"Has or not? " << objConn.hasAttachEntity() << std::endl;
 std::cout <<"Has or not conn ? " << objConn.hasConnectEntity() << std::endl;
    
    // std::cout << static_cast<char>(objConn.getStatus()) << std::endl;
    std::cout << objConn.getStatus() << std::endl;

    eNumTest tttt(ConnectEntity::cellPerFace);
    std::cout <<"ddd : " << tttt.hasAttachEntity();
    std::cout <<"ddd : " << tttt.hasConnectEntity();

    return 0;
}


